package edu.zut.pioneer.staff.domain;

import edu.zut.pioneer.base.domain.BaseTree;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@Entity
@Table(name="staff_type")
public class StaffType extends BaseTree<StaffType,Long> {
    @Column(name="name")
    private String name;
    @Column(name="phone")
    private long phone;


    public StaffType(){}

    public StaffType(String name, long phone) {
        this.name = name;
        this.phone = phone;
    }

    @Override
    public String toString() {
        return "StoreType{" +"name='" + name + '\'' + ", phone='" + phone +'}';
    }

    public String getName() {
        return name;
    }

    public long getPhone() {
        return phone;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setPhone(long phone) {
        this.phone = phone;
    }
}
